import com.alibaba.fastjson.JSON;
import com.mini.mini.entity.DoubleElephant;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.junit.Test;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 白sa能
 * @className
 * @date Created in 11:41 PM 4/27/21
 * @package PACKAGE_NAME
 * @Description
 */
public class JsoupPaShu {
    @Test
    public void test1() throws IOException {
        List<DoubleElephant> list = new ArrayList<>();
        DoubleElephant de1 = new DoubleElephant();
        DoubleElephant de2 = new DoubleElephant();
        de1.setFlag(1);
        de1.setTitle("文字");
        de2.setTitle("图片链接");
        de2.setFlag(2);
        list.add(de1);
        list.add(de2);
        String s1 = JSON.toJSONString(list);
        System.out.println(s1);
    }
}
